package com.itheima.pojo;

public class Student {
    private Integer id;         //唯一标示
    private String username;    //姓名
    private String password;    //密码
    private Integer age;        //年龄
    private Character sex;      //性别
    private String email;       //邮箱
    private Integer start;      //状态 0：禁用 1：未激活  2：激活

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", email='" + email + '\'' +
                ", start=" + start +
                '}';
    }

    public Student() {
    }

    public Student(String username, String password, Integer age, Character sex, String email, Integer start) {
        this.username = username;
        this.password = password;
        this.age = age;
        this.sex = sex;
        this.email = email;
        this.start = start;
    }

    //忽略id password
    public Student(String username, Integer age, Character sex, String email, Integer start) {
        this.username = username;
        this.age = age;
        this.sex = sex;
        this.email = email;
        this.start = start;
    }
    //全参构造
    public Student(Integer id, String username, String password, Integer age, Character sex, String email, Integer start) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.age = age;
        this.sex = sex;
        this.email = email;
        this.start = start;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Character getSex() {
        return sex;
    }

    public void setSex(Character sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getStart() {
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }
}
